{{! usage: link to="namepath" html=true/false caption="optional caption"~}}

{{#link to~}}
{{#if url~}}
[`{{#if ../../caption}}{{escape ../../../caption}}{{else}}{{escape name}}{{/if}}`]({{{url}}})
{{~else~}}
`{{#if ../../caption}}{{escape ../../../caption}}{{else}}{{escape name}}{{/if~}}`
{{~/if~}}
{{/link~}}
